package com.nexus.all.mongodb.model;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

@Getter
@Setter
@Document
public class MongoNoteHistory {

    @Id
    private String id;

    /**
     * 笔记id
     */
    @Indexed
    private Long noteId;

    /**
     * 流量量
     */
    private Integer browseNum;
}
